package com.baidu.bridge.dto.mb;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
// 请求参数：创建角色
public class CreateRoleRequest {
    private String id;
    private String name;
    private String description;
    private String level; // 角色等级
    private RoleActions actions; // 权限列表

    // Getter and Setter
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RoleActions {
        private String resourceType;
        private List<String> permission; // 操作类型列表（read/write/admin）


    }
}
